Skip to content

feat(user-management): Add authorized application endpoints - #1755

Open
petrhora wants to merge 1 commit into
workos:mainfrom
petrhora:petrhora/feat-authorized-applications
Open

petrhora wants to merge 1 commit into
workos:mainfrom
petrhora:petrhora/feat-authorized-applications

Conversation

@petrhora

@petrhora petrhora commented Nov 8, 2026

Copy link
Copy Markdown

Description

Adds two missing endpoints to workos.userManagement:

  • listAuthorizedApplications(userId, options?) lists a user’s authorized Connect applications with pagination.
  • deleteAuthorizedApplication(userId, applicationId) removes the user’s authorization without deleting the Connect application.

Uses the current official OpenAPI schema, including granted scopes, optional OAuth resource, and the nested application. Adds public types available through Node and worker exports.
References the unmerged implementation in #1536, following existing SDK conventions rather than introducing generator changes, as in #1681. Existing pagination options and defaults remain unchanged.
Tests cover request methods and paths, pagination parameters and subsequent pages, response deserialization, encoded IDs, and empty deletion responses.

Note:
The API also supports order: "normal", but the SDK’s shared pagination type does not expose it, including for userManagement.listUsers. Because adding it would be out of the scope of this PR, the new methods also don't allow order: "normal".

Verification

  • Full suite passed: 1,318 passed, 12 skipped.
  • After that adjustment: 216 relevant tests, type checking, formatting, and diff checks passed.
  • Lint and build passed before the final adjustment.
  • No live API requests were made.

Documentation

The endpoints are already documented. No documentation changes are required for this SDK addition.

@petrhora
petrhora requested review from a team as code owners November 8, 2026 04:45
@petrhora
petrhora requested a review from stacurry November 8, 2026 04:45
@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds listAuthorizedApplications and deleteAuthorizedApplication to workos.userManagement.

  • Callers can list a user’s authorized Connect applications.
  • Callers can remove one user’s authorization for a Connect application.

No actionable issues were found. Tests were inspected but not run during this review.

Acknowledged scope: petrhora explicitly deferred support for order: "normal" because the shared pagination type does not expose it.

Reviews (1) · Last reviewed commit: "feat(user-management): Add authorized ap..." · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant